package com.android.cookbook.listener;

import com.android.cookbook.activity.RecipeSearch;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class RecipeSearchListener implements OnClickListener{

	Context context;
	
	public RecipeSearchListener(Context context){
		this.context = context;
	}
	public void onClick(View view) {                   
		Intent myIntent = new Intent(view.getContext(),RecipeSearch.class);
		context.startActivity(myIntent);    
		((Activity)context).finish();
	}  
}
